package com.schoolcloud.share.service;

import com.schoolcloud.common.model.PageDTO;
import com.schoolcloud.share.dto.ShareVideoSaveDTO;
import com.schoolcloud.share.entity.Videos;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolcloud.share.query.SetSectionQuery;
import com.schoolcloud.share.query.VideoQuery;
import com.schoolcloud.share.vo.SectionVideoItem;
import com.schoolcloud.share.vo.SectionVideoVO;
import com.schoolcloud.share.vo.ShareVideoInfo;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【videos(视频主表)】的数据库操作Service
* @createDate 2025-05-16 18:35:15
*/
public interface VideosService extends IService<Videos> {

    Videos createVideo(ShareVideoSaveDTO videos);

    PageDTO<Videos> getVideoPage(VideoQuery query);

    ShareVideoInfo getVideoInfo(Integer id);

    PageDTO<Videos> getNotRelationVideoList(VideoQuery  query);

    PageDTO<SectionVideoVO> getSetSectionsPage(SetSectionQuery query);

    List<SectionVideoItem> getSetSectionRelatedList(Integer sectionId);
}
